#!/usr/bin/python
#
# absynth.py
# Copyright (C) Nicola Bizzoca   2006  <hannibal_smith@users.sourceforge.net>
# Copyright (C) Simone Economo   2006  <ekoes@users.sourceforge.net>
# 
# Absynth  is free software.
# 
# You may redistribute it and/or modify it under the terms of the
# GNU General Public License, as published by the Free Software
# Foundation; either version 2 of the License, or (at your option)
# any later version.
# 
# main.py is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with main.py.  If not, write to:
#	 The Free Software Foundaetion, Inc.,
#	 51 Franklin Street, Fifth Floor
#	 Boston, MA  02110-1301, USA.

#import os, sys, datetime

try:
	import psyco
	psyco.full()
except ImportError:
	print "Absynth supports 'psyco', an inline optimizer for python.\n" \
		  "You can get it at http://sourceforge.net/projects/psyco/."

from widgets.engine import Absynth

from widgets import AboutDialog
from widgets import MainWindow
from widgets import LocalView
from widgets import RemoteView
from widgets import LogView
from widgets import SysTray
					
if __name__ == "__main__":
	#try:
		Absynth = Absynth()
		#Absynth.runGUI()
	#except Exception, e:
		#errormsg = e.args[0]
		#if errormsg == "'NoneType' object has no attribute 'set_title'":
			#HandleError("Glade","Could not find '%s' in Glade's project." % conf.WINDOW_TYPE).runError()
		#else:
			#HandleError(e.__class__.__name__, errormsg, skipsearch = True).runError()